package com.dyh.quickdemo.conf;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/*
@Author=Joey Wheeler
@Date=2021/4/19 18:21
*/
@Configuration
//@ConditionalOnProperty("testarr")
public class TestarrConf {

    @Value("${bizsystem}")
    String bizSysyem;
    @Bean
    @ConfigurationProperties(prefix = "testarr")
    TestarrProp testarrProp()
    {
        return new TestarrProp();
    }
}
